/*
    int String Integer三种类型的互相转换
 */
public class IntegerTest03 {
    public static void main(String[] args) {
        //String --> int
        int ret = Integer.parseInt("123");
        System.out.println(ret);
        //int --> String
        String s = String.valueOf(123);
        System.out.println(s);
        int i = 6;
        String s1 = i + "";
        System.out.println(s1 + 125);

        //String --> Integer
        Integer i1 = Integer.valueOf("123");
        System.out.println(i1);
        //Integer --> String
        String s2 =String.valueOf(i1);
        System.out.println(s2);

        //int --> Integer
        Integer integer = 610;
        System.out.println(integer);
        //Integer --> int
        int y = integer;
        System.out.println(y);
    }
}
